Skip to content

feat: add configurable token_format parameter for IAS token exchange#1113

Merged
CharlesDuboisSAP merged 1 commit intoSAP:mainfrom
SvenScheurer:feat/ias-token-format-option
Mar 6, 2026
Merged

feat: add configurable token_format parameter for IAS token exchange#1113
CharlesDuboisSAP merged 1 commit intoSAP:mainfrom
SvenScheurer:feat/ias-token-format-option

Conversation

@SvenScheurer
Copy link
Contributor

@SvenScheurer SvenScheurer commented Mar 6, 2026

Context

  • Add IasOptions.withTokenFormat() to allow specifying token format
  • Token format parameter only sent when explicitly configured
  • Add comprehensive tests for JWT and SAML token format options

Users can now explicitly request JWT tokens from IAS:

.withOption(IasOptions.withTokenFormat("jwt"))

If not specified, token_format parameter is not included in the request, preserving existing IAS default behavior.

Fixes Add token_format=jwt parameter to IAS principal propagation token requests #1111

Definition of Done

  • Functionality scope stated & covered
  • Tests cover the scope above
  • Error handling created / updated & covered by the tests above
  • Documentation updated
  • Release notes updated

Fixes SAP#1111

- Add IasOptions.withTokenFormat() to allow specifying token format
- Token format parameter only sent when explicitly configured
- Add comprehensive tests for JWT and SAML token format options
- Resolves 401 errors when target services require JWT tokens

Users can now explicitly request JWT tokens from IAS:
  .withOption(IasOptions.withTokenFormat("jwt"))

If not specified, token_format parameter is not included in the
request, preserving existing IAS default behavior.
@cla-assistant
Copy link

cla-assistant bot commented Mar 6, 2026

CLA assistant check
All committers have signed the CLA.

@CharlesDuboisSAP CharlesDuboisSAP merged commit 77c73bb into SAP:main Mar 6, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add token_format=jwt parameter to IAS principal propagation token requests

2 participants